import React from 'react';
import { Space } from 'antd';
import './style.css';

interface PageHeaderProps {
  title: string;
  extra?: React.ReactNode;
}

const PageHeader: React.FC<PageHeaderProps> = ({ title, extra }) => {
  return (
    <div className="page-header">
      <h2 className="page-title">{title}</h2>
      {extra && <Space>{extra}</Space>}
    </div>
  );
};

export default PageHeader;

